<?php

namespace App\Helpers;

class Code
{

    const SYSTEM_OK = 0;
    const SYSTEM_VALIDATOR_ERROR = 1;
    const SYSTEM_CONFINE_ERROR = 2;
    const SYSTEM_UNAUTHORIZED = 3;
    const SYSTEM_NO_ACCESS = 4;
    const SYSTEM_STATUS_ERROR = 5;
    
    const INSIDE_TRUE = true;
    const INSIDE_FALSE = false;
    const INSIDE_ERROR = 99;
    const INSIDE_OK = 100;
    const INSIDE_EXIST_DEPENDENCE = 101;
    const INSIDE_BEYOND_LIMIT = 102;
    const INSIDE_RESTRICT_SIZE = 103;
    const INSIDE_ERROR_1 = 104;
    const INSIDE_ERROR_2 = 105;
    const INSIDE_ERROR_3 = 106;
    const INSIDE_DATABASE_ERROR = 107;
    const INSIDE_UPLOAD_FILE_ERROR = 108;
    
    const SUPER_ADMIN_USER_ID = 1;
    const SUPER_ADMIN_GROUP_ID = 1;
    const INFO_DEPARTMENT_GROUP_ID = 11;
    
    
    const CACHE_USER_MENU= 0;
    const CACHE_USER_PERMISSION = 1;
    
    //短信通知 0:任务通知,1:新咨询通知,2:咨询更新通知,3:临床计划通知,4:物流通知
    const SMS_TYPE_0 = 0;
    const SMS_TYPE_1 = 1;
    const SMS_TYPE_2 = 2;
    const SMS_TYPE_3 = 3;
    const SMS_TYPE_4 = 4;

    //不进行校验的路由
    const ROUTE_ESCAPE = [
        'user.my.get',
        'user.my.edit',
        'user.get.current',
        'user.menu.list',
    ];

}
